#ifndef MSGBUFFER_H
#define MSGBUFFER_H
#include "message.h"
#include "MessageParser.hpp"
#include <list>
class MsgBuffer
{
public:
    MsgBuffer();
    void addBytes(Data& bytes);
    Message getNextMessage();
    void eraseFirstBytes(unsigned int num);
    bool isNextMessageInBuff();
private:
    std::list<DataType> m_buff;
    MessageParser m_parser;
};

#endif // MSGBUFFER_H
